const history = []
export let adapter = {
  input(index,body){
    history.push({type:"input",index,body})
  },
  delete(index,length){
    history.push({type:"delete",index,body})
  }
}
export function backdone(){
  return history.pop()
}